package com.sky.Screen;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;

import com.sky.heathcare.R;

public class SplashActivity extends Activity {

	
    
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.splash_screen);
		
	
		Handler h = new Handler(Looper.getMainLooper());

	    Runnable r = new Runnable() {
	        public void run() {
	        	showNetworkErr();
	        }
	    };

	    h.postDelayed(r,2000); //-- run after 2 seconds
	    
		
	}

	
	private void showNetworkErr() {
		Intent intent = new Intent(this, ErrorNetworkActivity.class);
		intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
		
		startActivity(intent);
		overridePendingTransition(R.anim.slide_on_from_right, R.anim.slide_away_to_left);
		finish();
	}
	
}
